<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>

    <script>
        /*
            keep-alive组件
                <keep-alive>
                    <component is="comName"></component>
                </keep-alive>
                如果组件来回切换，我们可以使用keep-alive来将其包裹起来，这样可以节省性能，在组件变化时不会销毁
        */ 
    </script>
</body>
</html>